//
//  CPSVideoEditDemo3Controller.m
//  CollTest
//
//  Created by codew on 2/8/22.
//

#import "CPSVideoEditDemo3Controller.h"
#import <MobileCoreServices/UTCoreTypes.h>
#import "CPSVEP_PhotoViewController.h"
#import "CPSVEP_CustomCameraViewController.h"
#import "HXCustomAssetModel.h"
#import "HXPhotoManager.h"
#import "HXPhotoSubViewCell.h"
#import "HXPhotoView.h"
#import "UIViewController+HXExtension.h"
#import <SystemConfiguration/CaptiveNetwork.h>
#import "HXPhotoViewController.h"
#import "CPSVEP_CameraTools.h"

#import "CPSVEP_VideoPublishVC.h"

@interface CPSVideoEditDemo3Controller ()

@property (strong, nonatomic) HXPhotoManager *photoManager;

@end

@implementation CPSVideoEditDemo3Controller

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    CPSVEP_VideoPublishVC * vc = [[CPSVEP_VideoPublishVC alloc] init];
    
    vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
    vc.modalPresentationCapturesStatusBarAppearance = YES;
    [self presentViewController:vc animated:YES completion:nil];
}


//- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    HXPhotoManager * photoManager = [CPSVEP_CameraTools managerTypePhoto];
//
//    CPSVEP_PhotoViewController *vc = [[CPSVEP_PhotoViewController alloc] init];
//    vc.manager = photoManager;
//
//    HXCustomNavigationController *nav = [[HXCustomNavigationController alloc] initWithRootViewController:vc];
//
//    if (nav) {
//        nav.modalPresentationStyle = UIModalPresentationOverFullScreen;
//        nav.modalPresentationCapturesStatusBarAppearance = YES;
//
//        nav.hx_delegate = nil;
//        nav.manager = photoManager;
//
//        nav.doneBlock = nil;
//        nav.cancelBlock = nil;
//        vc.doneBlock = nav.doneBlock;
//        vc.cancelBlock = nav.cancelBlock;
//        vc.delegate = nav;
//    }
//
//
//
//    [self presentViewController:nav animated:YES completion:nil];
//
//}
//
//- (HXPhotoManager *)photoManager
//{
//    if (!_photoManager) {
//
//
//        _photoManager = [CPSVEP_CameraTools managerTypePhoto];
//
//    }
//    return _photoManager;
//}

@end
